﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;

namespace BLL
{
    /// <summary>
    /// 参数维护
    /// </summary>
    public class BLLParamater
    {
        DALParamater dal = new DALParamater();

        /// <summary>
        /// 获取班次
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public DataTable getOraer(string data)
        {
            return dal.getOrder(data);
        }

        /// <summary>
        /// 获取所有常用参数名称
        /// </summary>
        /// <returns></returns>
        public DataTable getParamater()
        {
            return dal.getParamater();
        }


        /// <summary>
        /// 获取所有常用参数
        /// </summary>
        /// <param name="data"></param>
        /// <param name="bc"></param>
        /// <returns></returns>
        public DataTable getParamaters(string data, string bc)
        {
            return dal.getParamaters(data, bc);
        }

        /// <summary>
        /// 添加参数
        /// </summary>
        /// <param name="num"></param>
        /// <param name="name"></param>
        /// <param name="value"></param>
        /// <param name="unit"></param>
        /// <param name="group"></param>
        /// <param name="date"></param>
        /// <returns></returns>
        public bool InsertParamaters(string num, string name, double value, string unit, string group, DateTime date)
        {
            return dal.InsertParamaters(num, name, value, unit, group, date);
        }

        /// <summary>
        /// 添加数据
        /// </summary>
        /// <param name="sql"></param>
        /// <returns></returns>
        public bool Inserts(string sql)
        {
            return dal.Inserts(sql);
        }
    }
}
